assume cs:code, ds:data

data segment
	db 'Welcome to masm!', 0
data ends


code segment
start:		mov ax, data
			mov ds, ax
			mov si, 0
			mov dh, 0 ;行号
			mov dl, 1 ;列号
			mov cl, 42h ;颜色
			call showStr

			mov ax, 4c00h
			int 21h


showStr:	push si
			push es
			push ax
			push bx
			mov es, 0B800h ;显卡的起始地址


			push dx ;保存dx，乘法会把高位放在dx里面
			mov al, dh
			mov ah, 0
			mov bx, 160
			mul bx


			pop bx
			pop ax
			pop es
			pop si
			ret		
code ends

end start